﻿using System;
using WeiboPlus.Common;
using WeiboPlus.Models;
using WeiboPlus.Service;

namespace WeiboPlus.Sina
{
    public class SinaSNSProvider : SNSProvider
    {

        protected override void Initialize()
        {
            base.Initialize();
            this.ProviderName = AppResx.SinaMicroblogText;
            this.Type = SNSProviderType.Sina;
            this.SupportUser = new SNSUser
            {
                Id = 1873090262,
            };
            //TODO 增加更多的关于新浪的服务provider配置信息
        }

        protected override IOAuthService GetAuthriozeService()
        {
            throw new NotImplementedException();
        }

        protected override OAuthSettings GetAuthSettings()
        {
            return ConfigrationManager.Current[SNSProviderType.Sina];
        }

        public override Uri GetIconUrl()
        {
            return new Uri("/Icons/sina_32.png", UriKind.Relative);
        }

        public override bool IsSupported
        {
            get { return true; }
        }
    }
}
